<?php

namespace Jb\Navigation;

use Jb\Navigation\Navigation;

class Page extends Navigation {

    public function addPage(Navigation $navigationPage) {
        throw new \BadFunctionCallException('A page is not allowed to have children');
    }

    public function removePage(Navigation $menuPage) {
        throw new \BadFunctionCallException('Can\'t remove page, a page is not allowed to have children');
    }

}

?>
